< previous page page_455 next page >

Page 455
Summary
There are many different types of collections you can use in Visual Basic. You can use the built-in collections, such as the Forms, Controls, and Printers, and you have the ability to create your own collections using the Collection class. It is highly recommended that you create a collection class instead of dealing with a generic Collection class object.
Review Questions
1. What are the built-in collections in Visual Basic?
2. How might collections help you in developing an application?
3. List the properties of the Collection object.
4. What are the methods of the Collection object?
5. Why should you build a class that encapsulates the Collection object?
Exercises
1. Create a collection class for the EmpType class you created in an earlier chapter.
2. Create a form that allows you to input employee type information into the EmpType collection class.
3. Enter a few employee types into the collection class.
4. Add a list box to this form and loop through your collection class to populate the employee type description in the collection class.

 
< previous page page_455 next page >

If you like this book, buy it!